﻿using System.Collections.Generic;

namespace XiAnAirport.Models
{
    public class ChannelDataResponseMessage
    {
        public int errcode { get; set; }
        public string errmsg { get; set; }
        public ChannelData data { get; set; }
    }

    public class ChannelData
    {
        public int ChannelIndex { get; set; }
        public double[] Datas { get; set; } // 原始数据
        public QCPGraphData[] FFTDatas { get; set; } // FFT频谱数据
        public QCPGraphData[] IFFTDatas { get; set; } // 倒谱谱数据
        public QCPGraphData[] ENVDatas { get; set; } // 包络谱频谱数据
        public QCPGraphData[] PownerDatas { get; set; } // 功率谱数据
        public FeatureModel FeatureModels { get; set; } // 特征谱
    }

    public class QCPGraphData
    {
        public double Key { get; set; }
        public double Value { get; set; }
    }

    public class FeatureModel
    {
        public double acc_peakToPeak { get; set; } // 峰峰值 OK
        public double acc_peak { get; set; } // 峰值 OK
        public double acc_meanAbsolute { get; set; }// 绝对均值 OK
        public double acc_rmsValue { get; set; }// 有效值（均方根值） OK
        public double acc_kurtosisValue { get; set; }// 峭度  OK
        public double acc_Wave { get; set; }// 波形指标  OK
        public double acc_peakFactor { get; set; }// 峰值指标  OK
        public double acc_PulseFactor { get; set; }// 脉冲指标  OK
        public double acc_CrestFactor { get; set; }// 裕度指标
        public double acc_kurtosisFactor { get; set; }// 峭度指标  OK
        public double acc_envelope = 0;     // 包络
        public double acc_rmsvelocity = 0;
    }
}
